This document provides usage examples for using the Python Shapefile Library. Examples Before doing anything you must import PSL. ... The shapes method returns a list of Shape objects describing the geometry of each shape record. >>> len(shapes)